﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace MVCBootStrapShell_WithTheme.Models
{
    public enum PageType
    {
        Presentation,
        Reference,
        Prestation,
    }

    public class Page
    {
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int PageID { get; set; }
        public PageType PageType { get; set; }
        [Required]
        public string Title { get; set; }
        [Required]
        public string SubTitle { get; set; }
        //[Required]
        public List<PageContent> PageContents { get; set; }
        [Required]
        public string Keywords { get; set; }
                
        
        public Page()
        {
            PageContents = new List<PageContent>();
        }
    }
}